package com.lvhx.springboot.service;

import com.lvhx.springboot.entity.User;
import com.lvhx.springboot.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @auther 吕宏旭
 * @date 2020/6/6 9:43
 */
@Service
public class UserService {

    @Autowired
    UserMapper userMapper;
    public User findById(Long id){
        return userMapper.selectByPrimaryKey(id);
    }

}
